package com.designpattern.behave.command;

import lombok.extern.slf4j.Slf4j;

/**
 * @author chengze
 * @date 2022/12/3
 * @desc 命令实现
 */
@Slf4j
public class CommandImpl2 implements Command{

    Logical logical;

    public CommandImpl2(Logical logical) {
        this.logical = logical;
    }

    @Override
    public void command() {
        log.info("执行命令二");
        logical.logicalFunc();
    }
}
